import createPersistedState from 'vuex-persistedstate'

export default ({ store }) => {
  createPersistedState({
    storage: sessionStorage,
    paths: [ // 缓存自定目录数据
      'token.token',
      'token.avatar'
    ]
  })(store)
}

// https://www.jianshu.com/p/846eed162fcf
